package it.unipd.dei.project.iandroid;
/**
 *  Classe per definire l'oggetto Evento
 * 
 */
import android.graphics.Bitmap;

public class Event {
	private String name;
	private String shortName;
	private String period;
	private String team;
	private Bitmap icon;

	public Event(String name, String period, String team, Bitmap icon) {
		this.name = name;
		this.shortName = name;
		this.period = period;
		this.team = team;
		this.icon = icon;
		if (name.length() >= 25) {
			shortName = name.substring(0, 24) + "...";
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public String getPeriod() {
		return period;
	}

	public void setPeriod(String period) {
		this.period = period;
	}

	public String getTeam() {
		return team;
	}

	public void setTeam(String team) {
		this.team = team;
	}

	public Bitmap getIcon() {
		return icon;
	}

	public void setIcon(Bitmap icon) {
		this.icon = icon;
	}

}
